
from urllib import request,error,parse

data = ['http', 'www.baidu.com', 'index.html', '', '', '']
params = {
  "name": "jsdoit", "age": 123
}
url = "http://www.baidu.com/index.html?"

totalurl = 'https://zb.oschina.net/project/contractor-browse-project-and-reward?applicationAreas=&sortBy=30&currentTime=2018-11-01+20:22:08&pageSize=10&currentPage=2'
# print(parse.urlparse(url))
print(url+parse.urlencode(params))

